package com.example.boot.bean;

import lombok.AllArgsConstructor;

import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;
import java.util.Collection;


@Data
@AllArgsConstructor
@NoArgsConstructor
public class User implements Serializable {

    private int id;
    @NotBlank(message = "用户姓名不能为空")
    private String userName;
    @NotBlank(message = "用户密码不能为空")
    private String password;
    private String role;





    private Integer adminId;
    //private Integer count;

}
